package com.aizuda.boot.modules.business.permission.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author duanyao
 * @date 2022/12/05 14:07
 * @description: 角色单表信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("auth_menu_role_rel")
public class MenuRoleRelEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单权限id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="菜单权限id")
    private Long id;

    /**
     * 权限类型，1：功能，2：操作
     */
    @Schema(description="权限类型，1：功能，2：操作")
    private Boolean powerType;

    /**
     * 角色id
     */
    @Schema(description="角色id")
    private Long roleId;

    /**
     * 菜单id
     */
    @Schema(description="菜单id")
    private Long menuId;

    /**
     * 权限标识字段
     */
    @Schema(description="权限标识字段")
    private String powerTabStr;
}

